﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;

public class EndPanel : MonoBehaviour
{

    // Use this for initialization
    void Start()
    {
        this.transform.Find("EndBtn").GetComponent<Button>().onClick.AddListener(delegate { SceneManager.LoadScene("MainMenu"); });
    }
}
	
